package com.xcc.config;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description: FanoutReceiverKey1
 * @Author: xiechuang
 * @Date: 2022/12/5
 */

@Component
@RabbitListener(queues = "fanout.key1")
public class FanoutReceiverKey1 {

    @RabbitHandler
    public void process(Map<String, Object> message) {
        System.out.println("fanout.key1接收到消息：" + message.toString());
    }

}
